// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import router from './router'
import 'video.js/dist/video-js.css'; // video.js样式
import hls from "videojs-contrib-hls"; // 播放hls流需要的插件
import ElementUI from 'element-ui';
import VueTouch from "vue-touch";
import axios from 'axios'
import VueAxios from 'vue-axios'
import {
	iconfontUrl,
	iconfontVersion
} from './utils/iconfont'; //引入阿里小图标的库
import {
	loadStyle
} from './utils/loadStyle.js' //创建阿里小图标的方法
Vue.use(VueAxios, axios)
Vue.use(hls);
Vue.use(ElementUI)
Vue.use(VueTouch, {
	name: "v-touch"
});
Vue.config.productionTip = false


// 动态加载阿里云字体库
iconfontVersion.forEach(ele => {
	loadStyle(iconfontUrl.replace('$key', ele));
})
// Vue.prototype.$http = Axios;
/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	components: {
		App
	},
	template: '<App/>'
})
